from openpyxl import Workbook, load_workbook
from random import randint, randrange
s = 0
def text():

    strShuzhu = {}
    i = int(input('请输入开始的数字：'))
    s = int(input('请输入结束的数字：'))
    aq = s
    num = 0
    while aq:
        strShuzhu[str(i)] = s
        aq -= 1
        num += 1
        a = randrange(i, s)
        b = randint(i, s)
        print('第{0}次 ：a 随机数为：{1}\t b的随机数为：{2}'.format(num, a, b))
        if a == b:
            print(str(a) + '\t' + str(b))

    for key, value in strShuzhu.items():
        print('%s %s  C'.center(20, '-') % (key, value))


def excel():
    wb = Workbook()
    ws1 = wb.create_sheet("TEXT")
    i = 1
    for i2 in s:
        str1 = 'A' +str(i2)
    ws1['A']


def main():
    text()

if __name__ == '__main__':
    main()






